﻿using System.Security.Cryptography;
using System.Text;

namespace Cheetah_Fast_Banking_App.Cryptography
{
    public class SHA256Hasher : Hasher
    {
        /// <summary>
        /// Creates an instance of Hasher using MD5CryptoServiceProvider as the
        /// default HashAlgorithm and the default Encoding and Mixer
        /// </summary>
        public SHA256Hasher()
            : this(Encoding.Default)
        { }

        /// <summary>
        /// Creates an instance of Hasher using MD5CryptoServiceProvider as the
        /// default HashAlgorithm and the specified Encoding and default Mixer
        /// </summary>
        public SHA256Hasher(Encoding encoding)
            : this(encoding, Mixer.Default)
        { }

        /// <summary>
        /// Creates an instance of Hasher using MD5CryptoServiceProvider as the
        /// default HashAlgorithm and the specified Encoding and Mixer
        /// </summary>
        public SHA256Hasher(Encoding encoding, Mixer mixer)
            : base(new SHA256CryptoServiceProvider(), encoding, mixer)
        { }
    }
}
